package com.yang.news.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName t_visit_log
 */
@TableName(value ="t_visit_log")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VisitLog implements Serializable {
    /**
     * 物理主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 设备类型，手机还是电脑
     */
    @TableField(value = "device_type")
    private String deviceType;

    /**
     * ip地址
     */
    @TableField(value = "ip")
    private String ip;

    /**
     * 区域
     */
    @TableField(value = "address")
    private String address;

    /**
     * 耗时
     */
    @TableField(value = "time")
    private Integer time;

    /**
     * 调用方法
     */
    @TableField(value = "method")
    private String method;

    /**
     * 参数
     */
    @TableField(value = "params")
    private String params;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}